<%@page import="com.itsm.v17.entity.UserStatusRecord"%>
<%@page import="java.util.List"%>
<%@ page pageEncoding="utf-8"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
String message="";
if(request.getAttribute("message")!=null){message=request.getAttribute("message")+"";}
System.out.println("list="+request.getAttribute("list"));
%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>用户在岗状态查询</title>
<link href="<%=basePath%>css/home.css" type="text/css" rel="stylesheet" />
<style>
.tableblue00 td{
padding:5px;
}
</style>
<script>
function query()
{
	var loginId=document.getElementById("loginId").value;
	location.href="<%=basePath%>itsm17/user/queryStatus?loginId="+loginId;
}
</script>
</head>
<body style="padding:5px;margin:0px;">
	    <table width="100%" cellspacing="1" cellpadding="0" border="0" bgcolor="#D6E6F4" class="tableblue00">
                            <tbody>
                            <tr class="bbzxbg2">
                              <td colspan=3 >
                              	 用户登录ID： <input type="text" id="loginId" value="<%=request.getAttribute("loginId")%>"/>
                              	 <a class="actionbutton"  href='javascript:void();' onclick="javascript:query();" class="menudiv" style="margin-right: 10px;">查询</a>
                              </td>
                            </tr></tbody></table>
                     <br/>
                   <table width="100%" cellspacing="1" cellpadding="0" border="0" bgcolor="#D6E6F4" class="tableblue00">
                            <tbody>
                             <tr class="bbzxbg2">
                              <td width="20%">
                              登录ID
                              </td>
                              <td width="20%">修改时间</td>
                              <td align="left">
                              	修改状态
                              </td>
                            </tr> 
           <%
           		if(request.getAttribute("list")!=null)
           		{
           			List list=(List)request.getAttribute("list");
           			for(int i=0;i<list.size();i++)
           			{
           				UserStatusRecord record=(UserStatusRecord)list.get(i);
           				%>
           					<tr class="bbzxbg2">
                              <td width="20%">
                              <%=record.getUserId()%>
                              </td>
                              <td width="20%"><%=record.getModifyDate()%></td>
                              <td align="left">
                              	<%=record.getStatus()%>
                              </td>
                            </tr>
           				<%
           			}
           			if(list.size()==0)
           			{
           				%><tr class="bbzxbg2">
                              <td colspan=3 >
                              	无数据记录
                              </td>
                            </tr><%
           			}
           		}//endif
           	if((message!=null)&&(message.trim().length()>0))
           	{
           		%>
           			<tr class="bbzxbg2">
                              <td colspan=3 >
                              	<%=message%>
                              </td>
                            </tr>
           		<%
           	}
           %>
                            
                            
                          </tbody></table>
</body>
</html>